<?php
/**
 * Created by PhpStorm.
 * User: mars
 * Date: 2018/9/8
 * Time: 下午1:25
 */

namespace api\models;


class PhotoComment extends \common\models\PhotoComment
{
    public function fields()
    {
        return[
            'id',
            'uid',
            'username'=>function($model){
                return $model->u->username;
            },
            'pid',
            'comment',
            'craeted_at',
        ];
    }



}